﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Specialist/SpecialistMaster.Master" AutoEventWireup="true" CodeBehind="ClosedConsultations.aspx.cs" Inherits="MyHealthOnline.Specialist.ClosedConsultations" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    Closed consultations
    <br />

    <asp:UpdatePanel ID="updSearch" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click" />
        </Triggers>
        <ContentTemplate>
            Search for a patient: 
            <asp:TextBox ID="txtSearchPatient" runat="server"></asp:TextBox>
            <asp:Button ID="btnSearch" runat="server" Text="Search" 
                onclick="btnSearch_Click" />
            <br />
        
            <br />
    
            <asp:GridView ID="grdClosedConsultationsPatients" runat="server" 
                AutoGenerateColumns="false" DataKeyNames="Id" 
                onrowcommand="grdClosedConsultationsPatients_RowCommand">
                <Columns>
                    <asp:BoundField HeaderText="Patient Number" DataField="PatientId" SortExpression="PatientNo" />
                    <asp:BoundField HeaderText="Name" DataField="PacientName" SortExpression="PacientName" />
                    <asp:BoundField HeaderText="Date of Birth" DataField="BirthDay" SortExpression="BirthDay" />
                    <asp:BoundField HeaderText="Last Communication Date" DataField="LatestContact" />
                    <asp:BoundField HeaderText="InEPD" />
                    <asp:BoundField HeaderText="Status" DataField="Status" SortExpression="Status" />
                    <asp:ButtonField ButtonType="Button" Text="View" CommandName="View" />
                </Columns>
            </asp:GridView>

        </ContentTemplate>
    </asp:UpdatePanel >
    
</asp:Content>
